/*****************************************************************************
 * File: ClientCallbackImp.java
 * Author:  Todd Silvia & Phil Pilosi
 * Class:   CS 441 - Spring 2011
 * Project: 2 - Distributed Booking Agent, with RMI
 * Date:    February 28th 2011
 * Description:
 */

import java.rmi.server.UnicastRemoteObject;
import java.rmi.RemoteException;


public class ClientCallbackImp extends UnicastRemoteObject
	implements ClientCallbackInterface
{

	public ClientCallbackImp() throws RemoteException 
	{
		super();	
	}
	
	//Function to send message broadcast message to managers.
	public String broadcastMessage(String message) throws RemoteException
	{
		String returnMessage = "Broadcast received: " + message;
		System.out.println(returnMessage);	  
		return message;
	}      
}
